﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Login.aspx.cs" Inherits="V5_EShop.Admin.Admin_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员用户登录</title>
</head>
<link type="text/css" href="/Css/Admin/css.css" rel="Stylesheet" />

<script type="text/javascript" src="../Scripts/jquery_min.js"></script>

<body>
    <form id="form2" runat="server">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" background="/css/admin/top_bg.gif">
        <tr>
            <td style="width: 10%; height: 55px">
            </td>
            <td style="width: 40%; height: 55px">
                &nbsp;
            </td>
            <td style="width: 50%; padding-right: 10px; height: 55px">
                <div align="right">
                    <a href="http://www.qdknow.com">开发者支持</a></div>
            </td>
        </tr>
    </table>
    <table border="0" cellspacing="10" cellpadding="0" width="100%" height="297">
        <tr>
            <td height="74" colspan="3">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="top" width="442">
                &nbsp;
            </td>
            <td style="width: 1px" bgcolor="#cccccc">
            </td>
            <td style="width: 508px" valign="top">
                <label>
                </label>
                <table style="height: 193px" border="0" cellspacing="5" cellpadding="1" width="100%">
                    <tr>
                        <td colspan="2">
                            <div align="left">
                                用户名&nbsp;
                                <asp:TextBox ID="txtAdminName" runat="server" TabIndex="1" CssClass="username"  ></asp:TextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div align="left">
                                密&nbsp;&nbsp; &nbsp;码&nbsp;
                                <asp:TextBox ID="txtAdminPwd" runat="server" TextMode="Password" TabIndex="2" CssClass="password"></asp:TextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 53%" align="left">
                            效验码&nbsp;
                            <asp:TextBox ID="txtVerifyCode" runat="server" Width="43px" TabIndex="3" CssClass="vercode" ></asp:TextBox><img
                                src='../Inc/GetVerifyCode.aspx' alt="验证码">
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 36px" colspan="2">
                            &nbsp;
                            <asp:Button ID="Button1" runat="server" OnClick="btnLogin_Click" Text="" OnClientClick="return checkLogin();"
                                TabIndex="4" Style="background: url(/css/admin/signin.gif); border:0; width:82px; height:26px;" />
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <label>
                                <input id="ImageButton2" language="javascript" onclick='javascript:window.close();'
                                    border="0" src="/css/admin/reset.gif" type="image" name="ImageButton2" />
                            </label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <br />
    <br />
    <table border="0" cellspacing="0" cellpadding="0" width="100%" background="/css/admin/bottom_bg.gif"
        height="56">
        <tr>
            <td>
                <div class="STYLE2" align="center">
                    <span style="font-size: 10px">(c)2002-2007</span></div>
            </td>
        </tr>
    </table>
    </form>

    <script type="text/javascript">
        function checkLogin() {
            var adminname = $("#txtAdminName").val();
            var adminpwd = $("#txtAdminPwd").val();
            var VerifyCode = $("#txtVerifyCode").val();
            if (adminname == "") {
                alert("用户名不能为空!");
                return false;
            }
            if (adminpwd == "") {
                alert("密码不能为空!");
                return false;
            }
            if (VerifyCode == "") {
                alert("验证码不能为空!");
                return false;
            }
            return true;
        }
    </script>

</body>
</html>
